<?php  
class ControllerModuleCategory extends Controller {
	protected function index($setting) {
		global $CATEGORIES, $CATEGORY;
		
		$this->language->load('module/category');
		
		$this->data['categories'] = $CATEGORIES;
		
		if ($CATEGORY) {
			$this->data['category_id'] = $CATEGORY['id'];
		}
		else {
			$this->data['category_id'] = 0;
		}
		$this->render('module/category.tpl');
  	}
}
?>